package com.shanzhu.book.service;

import com.shanzhu.book.model.SeatReservation;

import java.util.List;
import java.util.Map;

public interface SeatReservationService {
    boolean cancelReservation(Long id, Long userId);

    List<SeatReservation> getUserReservations(Long userId);

    SeatReservation getCurrentReservation(Long userId);

    boolean checkIn(Long id, Long userId);

    boolean checkOut(Long id, Long userId);

    boolean reserveSeat(SeatReservation reservation);

    int selectCount();

    List<SeatReservation> searchReservations(String seatNumber, String location, Integer integer, int page, int limit);

    List<SeatReservation> searchReservations2(Map<String, Object> params);

    int selectCountBySearch(String seatNumber, String location, Object o, Integer integer, Object o1, Object o2);

    int getSearchCount(Map<String, Object> params);

    Integer deleteSeatReservation(SeatReservation seat);

    Integer addSeat(SeatReservation notice);

    Integer updateSeat(SeatReservation seat);

    Integer updateSeatStatus(SeatReservation seat);
}
